package org.han.org.service.impl;

import org.han.base.service.impl.BaseServiceImpl;
import org.han.org.domain.Employee;
import org.han.org.mapper.EmployeeMapper;
import org.han.org.service.IEmployeeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.*;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Resource
    private EmployeeMapper mapper;


    @Override
    public void batchDelete(List<Long> ids) {
        mapper.bulkDelete(ids);
    }


}
